package com.hr.service.impl;
import java.util.List;

import com.hr.dao.DepartmentDao;
import com.hr.dao.impl.DepartmentDaoImpl;
import com.hr.pojo.Department;
import com.hr.service.DepartmentService;
public class DepartmentServiceImpl implements DepartmentService{
	private DepartmentDao departmentDao = new DepartmentDaoImpl();
	@Override
	public List findAllDepartments() {
		return departmentDao.findAllDepartments();
	}
	@Override
	public void saveDepartment(Department department) {
		
		departmentDao.saveDepartment(department);
	}
	@Override
	public Department findDepartmentById(String id) {
		
		return departmentDao. findDepartmentById(id);
	}
	@Override
	public void updateDepartment(Department department) {
		
		departmentDao.updateDepartment(department);	
	}
	@Override
	public void delete(String id) {
	
		departmentDao.deleteDepartment(id);	
	}
}
